#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2022-11-6 14:03
import datetime
import time
from time import sleep

import shortuuid


def short_uuid():
    sh = shortuuid.ShortUUID(alphabet='1234567890')
    id_data = sh.random(length=6)
    print(f'id_data={id_data}')
    data_id2 = f"{datetime.date.today().strftime('%Y%m%d')}" \
               f"{shortuuid.ShortUUID(alphabet='1234567890').random(length=6)}" \
               f"{datetime.datetime.now().strftime('%H%M%S')}"
    print(f'data_id2={data_id2}')


